var express = require('express');
var router = express.Router();
var mongoose = require('mongoose');
var Studentlogon = mongoose.model('studentlogon');

/* GET users listing. */
router.post('/logon', (req, res) => {
    console.log(req.body)
    var studentlogon = new Studentlogon({
        ...req.body
    })
    studentlogon.save((error) => {
        if(!error){
            res.send('学生账户注册成功')
        }
    })
});

module.exports = router;
